package net.fenghaitao.handler;

import net.fenghaitao.annotation.ValidatorCareatedBy;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * @author ：HuangXiong
 * @date ：Created in 2021/1/7 11:21
 * @description：
 * @modified By：
 * @version:
 */
public class CareatedByValidator implements ConstraintValidator<ValidatorCareatedBy, String> {
   public void initialize(ValidatorCareatedBy constraint) {
      // do nothing
   }

   public boolean isValid(String value, ConstraintValidatorContext context) {

      System.out.println(context);
      System.out.println(value);
      return false;
   }
}
